module.exports = {
	publicPath: '/',
	outputDir: 'dist',
	assetsDir: 'static',
	lintOnSave: process.env.NODE_ENV === 'production',
	productionSourceMap: false,
	devServer: {
		port: 8081,
		//配置跨域
		proxy: {
			'/dev-api': {
				target: 'http://127.0.0.1:8881',
				pathRewrite: {
					'^/dev-api': ''
				},
			}
		}

	},
	configureWebpack: {
		//警告 webpack 的性能提示
		performance: {
			hints: 'warning',
			//入口起点的最大体积
			maxEntrypointSize: 50000000,
			//生成文件的最大体积
			maxAssetSize: 30000000,
			//只给出 js 文件的性能提示
			assetFilter: function (assetFilename) {
				return assetFilename.endsWith('.js');
			}
		}
	}
	,
	pluginOptions: {
		'style-resources-loader': {
			preProcessor: 'scss',
			patterns: []
		}
	}
}

